var assert = require('assert');
var should = require('should');
var util = require('util');
var _ = require('lodash');
var rebelModel = require('../../app/models/rebelModel');
var config = require('../config');

suite('rebelModel', function () {
    var rebel_model;
    setup(function (done) {
        rebelModel.getByRoleId(config.role_id, function (err, model) {
            assert.equal(err == null, true);
            rebel_model = model;
            rebel_model.toJSON();
            done();
        });
    });

    suite('isPassPreRebel', function () {
        test('是否前置来袭已经完成', function () {
            rebel_model.isPassPreRebel(2001).should.equal(true);
        });
    });
});
